﻿using System.Web;
using System.Web.UI;
using umbraco.BasePages;
using umbraco.interfaces;

namespace TheOutfield.UmbExt.DocTypeExtensions.Actions
{
    public class SwapMasterDocTypeAction : IAction
    {
        public static SwapMasterDocTypeAction Instance
        {
            get { return umbraco.Singleton<SwapMasterDocTypeAction>.Instance; }
        }

        public char Letter
        {
            get { return 's'; }
        }

        public bool ShowInNotifier
        {
            get { return true; }
        }

        public bool CanBePermissionAssigned
        {
            get { return false; }
        }

        public string Icon
        {
            get { return ".sprSwapMasterDocType' style='background: transparent url(/umbraco/images/umbraco/swap_master_doc_type.png) center center no-repeat"; }
        }

        public string Alias
        {
            get { return "swapmasterdoctype"; }
        }

        public string JsSource
        {
            get
            {
                return @"/umbraco/theoutfield/doctypeextensions/scripts/doctypeextensions.js";
            }
        }

        public string JsFunctionName
        {
            get
            {
                return "actionSwapMasterDocType()";
            }
        }
    }
}